package com.shen.scan;

/**
 * Author:shen
 * CreateDate:2020/5/17.
 * Function:
 */
public class Sonar {
    public void scan(Object object){
        if(Swimming.class.isAssignableFrom(object.getClass())){
           Swimming swimming= (Swimming) object;
           swimming.swimming();
        }
    }
}
